package com.ygs.secs.model;

import java.io.Serializable;

/**
 * 管理员
 */
public class Admin implements Serializable {
    //管理员
    private String adminid;

    //真实姓名
    private String realname;

    //头像
    private String headportrait;

    //联系电话
    private String contactnumber;

    //密码
    private String password;

    //权限类型 大于10 超级管理员 小于10普通管理员
    private Integer type;

    private static final long serialVersionUID = 1L;

    public String getAdminid() {
        return adminid;
    }

    public void setAdminid(String adminid) {
        this.adminid = adminid;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getHeadportrait() {
        return headportrait;
    }

    public void setHeadportrait(String headportrait) {
        this.headportrait = headportrait;
    }

    public String getContactnumber() {
        return contactnumber;
    }

    public void setContactnumber(String contactnumber) {
        this.contactnumber = contactnumber;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", adminid=").append(adminid);
        sb.append(", realname=").append(realname);
        sb.append(", headportrait=").append(headportrait);
        sb.append(", contactnumber=").append(contactnumber);
        sb.append(", password=").append(password);
        sb.append(", type=").append(type);
        sb.append("]");
        return sb.toString();
    }
}